
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Depth of Field - PanoTools.org Wiki</title>




<style media="screen" type="text/css" title="Screen style sheet"> @import url(manual.css); </style>

<meta name="generator" content="MediaWiki 1.35.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>





<!--[if lt IE 9]><![endif]-->
</head>
<body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Depth_of_Field rootpage-Depth_of_Field skin-vector action-view skin-vector-legacy">


<div id="content" class="mw-body" role="main">
	<a id="top"></a>
	
	
	<h1 id="firstHeading" class="firstHeading" lang="en">Depth of Field</h1>
	<div id="bodyContent" class="mw-body-content">
		<div id="siteSub" class="noprint">From PanoTools.org Wiki</div>
		
		
		
		
		
		
		<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><p><br />
</p>
<div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none" />
<ul>






</ul>
</div>

<h2><a name="What_it_is"><span class="mw-headline">What it is</span></a></h2>
<p>A photographic image is only sharp in the focus plane. The farther an object is located in front of or behind the focus plane, the more it is blurred. 
</p><p>However, this blur is not recognizable if it stays below a certain amount. In classical photography which has a printed image as a goal (no matter whether digital or analog) the perception of the human eye is the limiting factor. 
</p><p>The human eye commonly accepts an edge as sharp, if the angle of view of the blur is smaller than 1 arc minute. Hence a point blurred to that amount has the diameter of 2 arc minutes, which is the same as 1/1700 of the viewing distance. 
</p><p>This is the allowed diameter of the so called Circle of Confusion. The normal viewing distance in classical photography is assumed to be equivalent to the printed image diagonal. The circle of confusion is the basis for most Depth of Field calculators or tables. 
</p>
<h2><a name="Considerations_for_zoomable_panoramas"><span class="mw-headline">Considerations for zoomable panoramas</span></a></h2>
<p>For computer displayed panorama creation where one can zoom into the image, the limit must be the pixel distance in the viewable panorama - unless you don't allow to zoom in until 100% pixel view.
</p><p>Since a pixel in an <a href="Equirectangular.html" class="mw-redirect" title="Equirectangular">equirectangular</a> panorama corresponds to a certain angle of view in reality, we can directly calculate the allowed angle of confusion in the shot image. It is 360° divided by the pixel width of the equirectangular image.
</p><p>For a standard angle of confusion of 2 arc minutes this would result in an equirect image with 10800*5400 pixel. If zoomable panoramas are smaller in pixel size, the Depth of Field is far bigger than for classical photography and standard depth of field calculators are of no big use. Read on to see how to circumvent this.
</p>
<h2><a name="Diffraction"><span class="mw-headline"><a href="Diffraction.html" title="Diffraction">Diffraction</a></span></a></h2>
<p>In the increasingly popular gigapixel panoramas, where longer lenses are used, Depth of Field is a serious issue. While stopping down increases DoF, image blur due to diffraction limits the sharpness and the final resolution. Effective resolution can be calculated using the Rayleigh criterion<a class="external" href="http://www.wikipedia.org/wiki/angular_resolution">[*]</a>. See the main article on <a href="Diffraction.html" title="Diffraction">Diffraction</a> for more details.
</p>
<h2><a name="Hyperfocal_distance"><span class="mw-headline">Hyperfocal distance</span></a></h2>
<p>In most cases a panorama should be sharp from the horizon to the nearest objects. Since the <a href="Depth_of_Field.html#What_it_is">Depth of Field</a> region is partly in front of and partly behind the focus plane, you sacrifice a fair amount of Depth of Field if you focus to infinity - only one part of the depth of field range is used.
</p><p>However, there is a distance you can focus on, that extends the Depth of Field exactly from infinity to a nearer limit. This is the hyperfocal distance. It can be calculated, if the allowed circle of confusion (see above) on the sensor is known.
</p><p>Following the above considerations on <a href="Depth_of_Field.html#Considerations_for_zoomable_panoramas">Depth of Field for zoomable panoramas</a> we can calculate a small table with
</p>
<ul><li>Width - image width in pixels</li>
<li>AoC - angle of confusion in arc minutes</li>
<li>CoC - Circle of Confusion on full format DSLR or analog film in mm (diagonal 43.3mm)</li>
<li>CoC1.6 - Circle of Confusion on <a href="Crop_factor.html" title="Crop factor">crop factor</a> 1.6 DSLR in mm (diagonal 27mm)</li></ul>
<pre> Width  AoC  CoC    C0C1.6
16000   1.4  0.017  0.011
12000   1.8  0.023  0.014
10000   2.2  0.027  0.017
 8000   2.7  0.034  0.021
 6000   3.6  0.045  0.028
 4000   5.4  0.068  0.042
</pre>
<p>The formula for this calculation is 
</p>
<pre>CoC = sin(AoC) * sensor diagonal
AoC = 360 / Width
</pre>
<p>With this values you can go into any depth of field calculator where you can enter the circle of confusion like for example <a rel="nofollow" class="external free" href="http://www.tawbaware.com/maxlyons/calc.htm">http://www.tawbaware.com/maxlyons/calc.htm</a> and calculate the hyperfocal distance (and the Depth of Field if required). 
</p><p>In any case the near limit of the Depth of Field is half the hyperfocal distance. 
</p><p>Please note, that all these values for fisheye lenses are only approximations, since their focal length changes from the center to the edges as well as the effective aperture changes.
</p>
<h2><a name="Extending_depth_of_field_in_software"><span class="mw-headline">Extending depth of field in software</span></a></h2>
<p><a rel="nofollow" class="external text" href="http://www.janrik.net/ptools/ExtendedFocusPano12/">Rik Littlefield</a> added functionality to the <a href="Pano12.html" title="Pano12">pano12</a> library to merge multiple exposures with different focal distances into a single image with extended <b>depth of field</b>.  This has largely been superceded by new software, notably <a rel="nofollow" class="external text" href="http://zerenesystems.com/">Zerene Stacker</a>, CombineZ, <a rel="nofollow" class="external text" href="http://www.general-cathexis.com/">SAR</a>, <a rel="nofollow" class="external text" href="http://www.heliconsoft.com/heliconsoft-products/helicon-focus/">Helicon focus</a> and <a href="Enfuse.html" title="Enfuse">enfuse</a>.
</p>
<h2><a name="Web_links"><span class="mw-headline">Web links</span></a></h2>
<p>Some Investigations Regarding Depth of Field by Rik Littlefield: <a rel="nofollow" class="external autonumber" href="http://www.janrik.net/DOFpostings/PM1/DOFInvestigations1.htm">[1]</a>
</p><p><small>Erik Krause<a class="external" href="https://wiki.panotools.org/User:Erik_Krause">[*]</a> 16:50, 6 Jun 2005 (EDT)</small>
</p>

<!--
Transclusion expansion time report (%,ms,calls,template)
100.00%   13.084      1 Template:Glossary
100.00%   13.084      1 -total
-->


</div></div><div class="printfooter">Retrieved from "<a dir="ltr" href="https://wiki.panotools.org/index.php?title=Depth_of_Field&amp;oldid=17400">https://wiki.panotools.org/index.php?title=Depth_of_Field&amp;oldid=17400</a>"</div>
		</div></div></body></html>